#include <stdio.h>
void main()
{int length;
float a[100];
printf("Please input a number:");
sum_elements(a[],length);
}
float sum_elements(float a[],unsigned length){
int i;
float result = 0;
for(i=0;i<=length-1;i++)
result += a[i];
printf("%f",result);
return result;
}
